package com.example.aop.config;

import com.example.aop.OrderService;
import com.example.aop.OrderServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
@ComponentScan(basePackages = "com.example.aop")
public class AppConfig {
    @Bean
    public OrderService orderService() {
        return new OrderServiceImpl();
    }
}
